home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Backwash ƒ / Backwash.a < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.3 KB  |  44 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File: Backwash.a
  3. ;    
  4. ;    Assembly code (jump table) for a printing extension
  5. ;    that adds a QuickDraw picture to each page despooled.
  6. ;
  7. ;    Dave Hersey
  8. ;    Apple Developer Technical Support
  9. ;
  10. ;    11/11/92 - dmh - Created.
  11. ;     1/28/93 - dmh - Cleaned up for a5 seed CD.
  12. ;     3/26/93 - dmh - Updated for b1c2 (Translator changes).
  13. ;     8/24/93 - dmh - Updated for b2.
  14. ;    12/18/93 - dmh - Updated for b3.
  15. ;
  16.  
  17.     EXPORT    EntryPoint
  18.     IMPORT    BWInitialize                ; Our override for GXInitialize.
  19.     IMPORT    BWShutDown                    ; Our override for GXShutDown.
  20.     IMPORT    BWJobPrintDialog            ; Our override for GXJobPrintDialog.
  21.     IMPORT    BWHandlePanelEvent            ; Our override for GXHandlePanelEvent.
  22.     IMPORT    BWCreateSpoolFile            ; Our override for GXCreateSpoolFile.
  23.     IMPORT    BWDespoolPage                ; Our override for GXDespoolPage.
  24.     IMPORT    BWCloseSpoolFile            ; Our override for GXCloseSpoolFile.
  25.     
  26. EntryPoint    PROC                        ; Our main entry point.
  27.     
  28.             DC.L    0                    ; Reserved for owner count.
  29.     
  30.             JMP        BWInitialize        ; (offset =  4)
  31.             JMP        BWShutDown            ; (offset =  8)
  32.             JMP        BWJobPrintDialog    ; (offset = 12)
  33.             JMP        BWHandlePanelEvent    ; (offset = 16)
  34.             JMP        BWCreateSpoolFile    ; (offset = 20)
  35.             JMP        BWDespoolPage        ; (offset = 24)
  36.             JMP        BWCloseSpoolFile    ; (offset = 28)
  37.             
  38.             RTS                            ; this is here so that the
  39.                                         ; entrypoint will be labled "Anon0"
  40.  
  41.             ENDPROC
  42.  
  43.     END
  44.